#!usr/bin/python
#-*- coding:utf-8 _*-
"""
@author:root
@file: run_feed_kafka.py
@time: 2018/08/{DAY}
"""
# python kafka_monitor.py feed '{"url": "http://yiyuan.999ask.com/areasearch/", "appid":"ar99x", "crawlid":"0098x"}'
from scrapy import cmdline
import os
import commands
str = '''history | grep "python"'''
# cmdline.execute(str.split())
(status, output) = commands.getstatusoutput(str)
print status, output
# os.system(str)
# output = os.popen(str)
# print output.read()